<?php

class NewController extends Controller {
    public function actionIndex()
    {

        if (Yii::app()->user->isGuest) {
            $this->renderPartial('//partials/auth');

            return;
        }
        $this->layout = '//layouts/new';
        $this->render('index');
    }
}